//
//  HomepageCell.m
//  HaoHaiSpell
//
//  Created by haohai on 16/6/20.
//  Copyright © 2016年 海城. All rights reserved.
//

#import "HomepageCell.h"

@implementation HomepageCell


- (IBAction)singleBtn:(UIButton *)sender {
    
    NSLog(@"单独购");
}

- (IBAction)teamBtn:(UIButton *)sender {
    NSLog(@"团购");
}



<<<<<<< HEAD
-(void)setCellWithModel:(SpellModel *)model{

    [self.goodsImageView sd_setImageWithURL:[NSURL URLWithString:model.goods_img]];
    self.priceLabel.text = [@"¥" stringByAppendingString:model.shop_price];
    self.discountLabel.text = [model.team_discount stringByAppendingString:@"折"];
    self.introduceLabel.text = model.goods_brief;
    self.titleLabel.text = model.goods_name;
    NSString *title = [model.team_num stringByAppendingString:@"人团"];
    self.teamNum.text = title;
    [self.singleBtn setTitle:title forState:UIControlStateNormal];
}
=======
>>>>>>> 5bee59541ff07dbcbaa6fe419e6df24b39c5e23d



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
